package commands;

import java.util.List;

import controller.ExecutorsManager;
import controller.ExecutorsManager.UserDropBoxFilesExecutor;
import database.DbFile;

/**
 * class UserDropBoxFilesCommand - for getting the files that directly under the user dropbox root
 */
public class UserDropBoxFilesCommand {
	UserDropBoxFilesExecutor userDropBoxFilesExecutor = ExecutorsManager.getInstance().getUserDropBoxFilesExecutor();
	
	/**
	 * constructor
	 */
	public UserDropBoxFilesCommand(){}

	/**
	 * @param userID - a uset name
	 * @return a list of the files that directly under the user dropbox root
	 */
	public List<DbFile> action(String userID) 
	{
		// TODO Auto-generated method stub
		return userDropBoxFilesExecutor.getUserDropBoxFiles(userID);			
	}

}
